From: Sebastian Keller Date: Mon, 8 Nov 2021 04:00:47 +0000 (+0100) Subject: magnifier: Remove call to dropped Clutter::get_default_frame_rate() X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~536^2^2~79 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=34bf17ad2705601f12db12fa0d2e14cc6ded4f9a;p=gnome-shell.git magnifier: Remove call to dropped Clutter::get_default_frame_rate() Clutter::get_default_frame_rate() has been removed in mutter!2002, but it is still being used here. Given that this was basically hardcoded to 60 in mutter with the only way of changing this being an obscure environment variable, just use that value here directly. This avoids a crash when starting gnome-shell with the magnifier enabled. Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4761 Part-of: --- diff --git a/js/ui/magnifier.js b/js/ui/magnifier.js index 2443248d3..e68dc84f0 100644 --- a/js/ui/magnifier.js +++ b/js/ui/magnifier.js @@ -200,7 +200,7 @@ var Magnifier = class Magnifier { */ startTrackingMouse() { if (!this._pointerWatch) { - let interval = 1000 / Clutter.get_default_frame_rate(); + let interval = 1000 / 60; this._pointerWatch = PointerWatcher.getPointerWatcher().addWatch(interval, this.scrollToMousePos.bind(this)); } }